package com.chen.demo.rhombus.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.chen.demo.rhombus.domain.enums.Type;
import com.chen.winnerframework.domain.entity.jpa.BaseEntity;
import lombok.Data;

import javax.persistence.*;

@Data
@Entity
@TableName("user")
@Table(name = "user")
public class UserDo extends BaseEntity {
    private String username;
    private String password;
    @Enumerated(EnumType.STRING)
    @Column(columnDefinition = "varchar(20)")
    private Type type;
}
